/*
 * Copyright (c) 2017 zhangcm. All Rights Reserved.
 */
package com.jnzc.ocr.serv.shop.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017/11/26
 */
@ApiModel(description = "退款销售保存参数")
public class ShopRefundSaleCreateVo {

    @ApiModelProperty(value = "订单ID")
    private Long orderId;
    @ApiModelProperty(value = "是否入库")
    private Boolean ifBackStock;
    @ApiModelProperty(value = "是否退货")
    private Boolean ifSign;
    @ApiModelProperty(value = "退款类型(1.全额, 2.扣费)")
    private Integer backType;
    @ApiModelProperty(value = "扣费金额")
    private BigDecimal chargingAmount;
    @ApiModelProperty(value = "退款方式(1.线上退款, 2.线下退款)")
    private Integer backMethod;
    @ApiModelProperty(value = "详情")
    private List<Detail> detailList;


    public static class Detail {
        @ApiModelProperty(value = "SKU的ID")
        private Long skuId;
        @ApiModelProperty(value = "数量")
        private Integer num;

        public Long getSkuId() {
            return skuId;
        }

        public void setSkuId(Long skuId) {
            this.skuId = skuId;
        }

        public Integer getNum() {
            return num;
        }

        public void setNum(Integer num) {
            this.num = num;
        }
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Boolean getIfBackStock() {
        return ifBackStock;
    }

    public void setIfBackStock(Boolean ifBackStock) {
        this.ifBackStock = ifBackStock;
    }

    public Boolean getIfSign() {
        return ifSign;
    }

    public void setIfSign(Boolean ifSign) {
        this.ifSign = ifSign;
    }

    public Integer getBackType() {
        return backType;
    }

    public void setBackType(Integer backType) {
        this.backType = backType;
    }

    public BigDecimal getChargingAmount() {
        return chargingAmount;
    }

    public void setChargingAmount(BigDecimal chargingAmount) {
        this.chargingAmount = chargingAmount;
    }

    public Integer getBackMethod() {
        return backMethod;
    }

    public void setBackMethod(Integer backMethod) {
        this.backMethod = backMethod;
    }

    public List<Detail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<Detail> detailList) {
        this.detailList = detailList;
    }
}
